package com.cos.ssm2.common;

import lombok.Data;

/**
 * @author: COS
 * @time: 2022/6/10 10:24
 * @description:
 */
public enum ResultCode {
    FAIL(0, "请求失败"),
    SUCCESS(1, "请求成功"),
    IS_LOGIN(3, "已登录"),
    NOT_LOGIN(4, "未登录");

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }


    public String getMsg() {
        return msg;
    }

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
